package com.nuedu.corejava.ch3.homework;

import java.util.Scanner;

public class HomeWork6 {
	public static void main(String[] agrs) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入一个年份");
		int x = input.nextInt();
		if (x % 400 == 0 && x % 100 != 0) {
			System.out.println(x + "不是闰年");
		}else if ( (x % 4 == 0 && x % 100 != 0)) {
			System.out.println(x + "是闰年");
		}else if (x % 400 == 0) {
			System.out.println(x + "是闰年");
		}else {
			System.out.println(x + "不是闰年");
		}
		
			
	
		

	}
}
